home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global packagenum, runstatus, wallname, mouseposition, fileName, cursorpointer
- setcursor()
- cursor(cursorpointer)
- setsaverfirst()
- setbeepfirst()
- set packagenum to "0"
- set runstatus to "quit"
- set wallname to "CINE"
- set mouseposition to mouseH() & "," & mouseV()
- set fileName to "MAIN"
- end
-
- on setsaverfirst
- global saveronoff, savertime
- clearchecksavertime()
- if saveronoff then
- set the hilite of cast "SaverOn" to 1
- set the hilite of cast "SaverOff" to 0
- else
- set the hilite of cast "SaverOn" to 0
- set the hilite of cast "SaverOff" to 1
- end if
- if savertime = 2 then
- set the hilite of cast "saver2min" to 1
- else
- if savertime = 3 then
- set the hilite of cast "saver3min" to 1
- else
- if savertime = 5 then
- set the hilite of cast "saver5min" to 1
- end if
- end if
- end if
- end
-
- on setbeepfirst
- global bgmonoff, beepnum
- clearcheckbeep()
- if bgmonoff = "pi" then
- set the hilite of cast "bgmOnOff" to 1
- else
- set the hilite of cast "bgmOnOff" to 0
- end if
- if beepnum = 1 then
- set the hilite of cast "beep1" to 1
- else
- if beepnum = 2 then
- set the hilite of cast "beep2" to 1
- else
- if beepnum = 3 then
- set the hilite of cast "beep3" to 1
- else
- if beepnum = 4 then
- set the hilite of cast "beep4" to 1
- end if
- end if
- end if
- end if
- end
-
- on button
- global bgmonoff
- set buttonname to item 1 of the name of cast the castNum of sprite clickOn()
- repeat while stillDown()
- if rollOver(clickOn()) then
- set the castNum of sprite clickOn() to the number of member (buttonname & ",down")
- else
- set the castNum of sprite clickOn() to the number of member (buttonname & ",up")
- end if
- updateStage()
- end repeat
- set the castNum of sprite clickOn() to the number of member (buttonname & ",up")
- updateStage()
- if rollOver(clickOn()) then
- puppetSound(bgmonoff)
- updateStage()
- return 1
- else
- return 0
- end if
- end
-
- on checktrush
- global framenum, dialogboxopen
- set framenum to the frame
- if sprite 2 intersects 6 then
- if mouseUp() then
- if dialogboxopen then
- go("exitAlart3")
- else
- go("exitAlart4")
- end if
- beepsound()
- end if
- end if
- end
-
- on beepsound
- global bgmonoff, beepnum
- puppetSound(string(beepnum))
- updateStage()
- end
-
- on wait t
- set waittime to ticks() + (t * 60)
- repeat while ticks() < waittime
- nothing()
- end repeat
- end
-
- on idle
- global startTime, fileName
- checktimeout()
- if fileName = "MAIN" then
- exit
- end if
- set runningtime to ticks() - startTime
- if runningtime > (5 * 60 * 60) then
- set startTime to ticks()
- if random(10) = 5 then
- bomb()
- end if
- end if
- end
-